package cn.xzhang.boot.model.vo.wallpaperDownloadRecord;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;


import java.io.Serializable;

/**
 * 壁纸下载记录VO
 *
 * @author <a href="https://github.com/XiaoZhangCode">XiaoZhangCode</a>
 */
@Data
@Schema(description = "壁纸下载记录VO")
public class WallpaperDownloadRecordVo implements Serializable {

    @Schema(description = "id")
    private Long id;

    @Schema(description = "壁纸id")
    private Long wallpaperId;

    @Schema(description = "用户id")
    private Long userId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "下载时间",requiredMode = Schema.RequiredMode.REQUIRED)
    private java.util.Date downloadTime;

    @Schema(description = "下载次数",requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer downloadCount;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "最后一次下载时间",requiredMode = Schema.RequiredMode.REQUIRED)
    private java.util.Date lastDownloadTime;

}
